﻿@model SharePointAccessMonitor.Models.DetailViewModel
@{
    ViewBag.Title = "Detail";
    
}
<h4>@(Model.Keyword)</h4>
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <table class="table" id="detaillist">
                <thead>
                    <tr>
                        <th style="width:20%;">
                            @(MessageResource.Timestamp)
                        </th>
                        <th>
                            @(MessageResource.Title)
                        </th>
                        <th style="width:30%;">
                            @(MessageResource.User)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model.Logs)
                    {
                        <tr>
                            <td><p class="ellipsis desc" title="@(item.Timestamp.ToString("yyyy/MM/dd HH:mm:ss"))">@(item.Timestamp.ToString("yyyy/MM/dd HH:mm:ss"))</p></td>
                            <td><a href="@(item.Url)"><p class="ellipsis desc">@(item.GetSummary())</p></a></td>
                            <td><p class="ellipsis desc" title="@(item.User)">@(item.User)</p></td>
                        </tr>

                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
